//
//  main.c
//  align
//
//  Created by chenyh on 2021/1/19.
//

#include <stdio.h>

int main(int argc, const char * argv[]) {
    // insert code here...
    
    double dx;
    char ca;
    char cx;
    double dz;
    char cb;
    char _Alignas(double) cz;
    printf("char alignment: %zd\n",_Alignof(char));
    printf("double alignment: %zd\n",_Alignof(double));
    printf("&dx:%p\n",&dx);
    printf("&ca:%p\n",&ca);
    printf("&cx:%p\n",&cx);
    printf("&dz:%p\n",&dz);
    printf("&cb:%p\n",&cb);
    printf("&cz:%p\n",&cz);
    return 0;
}
